package com.lgy.dao;

import com.lgy.pojo.Sale;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaleDao {
    int deleteByPrimaryKey(Integer saleId);

    int insert(Sale record);

    int insertSelective(Sale record);

    Sale selectByPrimaryKey(Integer saleId);

    int updateByPrimaryKeySelective(Sale record);

    int updateByPrimaryKey(Sale record);

    List<Sale> findAllSaleList(@Param("companyId") Integer companyId);

    int updateBySaleId(@Param("saleId")Integer saleId);

    Integer findRepertoryNum(@Param("companyId")Integer companyId,@Param("carId") Integer carId);

    Integer updateRepertoryNum(@Param("carId")Integer carId, @Param("companyId") Integer companyId, @Param("carNum") Integer carNum);
}